package info.thereisonlywe.onenesspathfinder.managers;

import info.thereisonlywe.onenesspathfinder.ui.MainFrame;
import info.thereisonlywe.onenesspathfinder.ui.UIConstants;

import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.ArrayList;

import javax.imageio.ImageIO;

public class ResourceManager {

	public static ArrayList<BufferedImage> getIconImages()
	{
		ArrayList<BufferedImage> images = new ArrayList<>();
		try
		{
			images.add(ImageIO.read(MainFrame.class
					.getResource(UIConstants.RESOURCES_ICONS_PATH
							+ "oplogo16.png")));
			images.add(ImageIO.read(MainFrame.class
					.getResource(UIConstants.RESOURCES_ICONS_PATH
							+ "oplogo24.png")));
			images.add(ImageIO.read(MainFrame.class
					.getResource(UIConstants.RESOURCES_ICONS_PATH
							+ "oplogo32.png")));
			images.add(ImageIO.read(MainFrame.class
					.getResource(UIConstants.RESOURCES_ICONS_PATH
							+ "oplogo48.png")));
			images.add(ImageIO.read(MainFrame.class
					.getResource(UIConstants.RESOURCES_ICONS_PATH
							+ "oplogo64.png")));
			images.add(ImageIO.read(MainFrame.class
					.getResource(UIConstants.RESOURCES_ICONS_PATH
							+ "oplogo96.png")));
			images.add(ImageIO.read(MainFrame.class
					.getResource(UIConstants.RESOURCES_ICONS_PATH
							+ "oplogo128.png")));
		}
		catch (IOException e)
		{
		}
		return images;
	}

}
